<?php
class Mageex_AdvanceSeo_Block_Catalog_Category_View extends Mage_Catalog_Block_Category_View
{
    public function getRssLink()
    {
		if(Mage::helper('advanceseo/config')->isEnableRewriteRss())
			return Mage::getUrl('rss/catalog/'). 
			   $this->getCurrentCategory()->getUrlKey().Mage::helper('advanceseo')->getSuffix();
		return Mage::getUrl('rss/catalog/category',array('cid' => $this->getCurrentCategory()->getId(), 'store_id' => Mage::app()->getStore()->getId()));
    }
}

?>